<?php

use Illuminate\Support\Facades\Route;

Route::apiResource('students', App\Http\Controllers\StudentController::class);
Route::apiResource('subjects', App\Http\Controllers\SubjectController::class);
Route::apiResource('scores', App\Http\Controllers\ScoreController::class);
Route::get('/score-subjects', [\App\Http\Controllers\ScoreController::class, 'subjects']);
Route::get('/score-students', [\App\Http\Controllers\ScoreController::class, 'students']);
Route::get('/score-rates', [\App\Http\Controllers\ScoreController::class, 'scoreRate']);
Route::post('/import-score', [\App\Http\Controllers\ScoreController::class, 'importScore']);
Route::get('/student-scores', [\App\Http\Controllers\ScoreController::class, 'studentScores']);
Route::get('/score-subject-details', [\App\Http\Controllers\ScoreController::class, 'scoreSubjectDetails']);
Route::post('/batch-score', [\App\Http\Controllers\ScoreController::class, 'batchScore']);
